3.366 \(\int \frac{\sec (e+f x)}{(a+b \sin ^2(e+f x))^{5/2}} \, dx\)

Optimal. Leaf size=126 \[ \frac{b (5 a+2 b) \sin (e+f x)}{3 a^2 f (a+b)^2 \sqrt{a+b \sin ^2(e+f x)}}+\frac{b \sin (e+f x)}{3 a f (a+b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b} \sin (e+f x)}{\sqrt{a+b \sin ^2(e+f x)}}\right )}{f (a+b)^{5/2}} \]

[Out]

ArcTanh[(Sqrt[a + b]*Sin[e + f*x])/Sqrt[a + b*Sin[e + f*x]^2]]/((a + b)^(5/2)*f) + (b*Sin[e + f*x])/(3*a*(a +
b)*f*(a + b*Sin[e + f*x]^2)^(3/2)) + (b*(5*a + 2*b)*Sin[e + f*x])/(3*a^2*(a + b)^2*f*Sqrt[a + b*Sin[e + f*x]^2
])

________________________________________________________________________________________

Rubi [A]  time = 0.158976, antiderivative size = 126, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {3190, 414, 527, 12, 377, 206} \[ \frac{b (5 a+2 b) \sin (e+f x)}{3 a^2 f (a+b)^2 \sqrt{a+b \sin ^2(e+f x)}}+\frac{b \sin (e+f x)}{3 a f (a+b) \left (a+b \sin ^2(e+f x)\right )^{3/2}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b} \sin (e+f x)}{\sqrt{a+b \sin ^2(e+f x)}}\right )}{f (a+b)^{5/2}} \]

Antiderivative was successfully verified.

[In]

Int[Sec[e + f*x]/(a + b*Sin[e + f*x]^2)^(5/2),x]

[Out]

ArcTanh[(Sqrt[a + b]*Sin[e + f*x])/Sqrt[a + b*Sin[e + f*x]^2]]/((a + b)^(5/2)*f) + (b*Sin[e + f*x])/(3*a*(a +
b)*f*(a + b*Sin[e + f*x]^2)^(3/2)) + (b*(5*a + 2*b)*Sin[e + f*x])/(3*a^2*(a + b)^2*f*Sqrt[a + b*Sin[e + f*x]^2
])

Rule 3190

Int[cos[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b*ff^2*x^2)^p, x], x, Sin[e +
f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rule 414

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> -Simp[(b*x*(a + b*x^n)^(p + 1)*(
c + d*x^n)^(q + 1))/(a*n*(p + 1)*(b*c - a*d)), x] + Dist[1/(a*n*(p + 1)*(b*c - a*d)), Int[(a + b*x^n)^(p + 1)*
(c + d*x^n)^q*Simp[b*c + n*(p + 1)*(b*c - a*d) + d*b*(n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d,
 n, q}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] &&  !( !IntegerQ[p] && IntegerQ[q] && LtQ[q, -1]) && IntBinomial
Q[a, b, c, d, n, p, q, x]

Rule 527

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_)), x_Symbol] :> -Simp[
((b*e - a*f)*x*(a + b*x^n)^(p + 1)*(c + d*x^n)^(q + 1))/(a*n*(b*c - a*d)*(p + 1)), x] + Dist[1/(a*n*(b*c - a*d
)*(p + 1)), Int[(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[c*(b*e - a*f) + e*n*(b*c - a*d)*(p + 1) + d*(b*e - a*f)
*(n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, f, n, q}, x] && LtQ[p, -1]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 377

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\sec (e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{5/2}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{\left (1-x^2\right ) \left (a+b x^2\right )^{5/2}} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{b \sin (e+f x)}{3 a (a+b) f \left (a+b \sin ^2(e+f x)\right )^{3/2}}-\frac{\operatorname{Subst}\left (\int \frac{b-3 (a+b)+2 b x^2}{\left (1-x^2\right ) \left (a+b x^2\right )^{3/2}} \, dx,x,\sin (e+f x)\right )}{3 a (a+b) f}\\ &=\frac{b \sin (e+f x)}{3 a (a+b) f \left (a+b \sin ^2(e+f x)\right )^{3/2}}+\frac{b (5 a+2 b) \sin (e+f x)}{3 a^2 (a+b)^2 f \sqrt{a+b \sin ^2(e+f x)}}+\frac{\operatorname{Subst}\left (\int \frac{3 a^2}{\left (1-x^2\right ) \sqrt{a+b x^2}} \, dx,x,\sin (e+f x)\right )}{3 a^2 (a+b)^2 f}\\ &=\frac{b \sin (e+f x)}{3 a (a+b) f \left (a+b \sin ^2(e+f x)\right )^{3/2}}+\frac{b (5 a+2 b) \sin (e+f x)}{3 a^2 (a+b)^2 f \sqrt{a+b \sin ^2(e+f x)}}+\frac{\operatorname{Subst}\left (\int \frac{1}{\left (1-x^2\right ) \sqrt{a+b x^2}} \, dx,x,\sin (e+f x)\right )}{(a+b)^2 f}\\ &=\frac{b \sin (e+f x)}{3 a (a+b) f \left (a+b \sin ^2(e+f x)\right )^{3/2}}+\frac{b (5 a+2 b) \sin (e+f x)}{3 a^2 (a+b)^2 f \sqrt{a+b \sin ^2(e+f x)}}+\frac{\operatorname{Subst}\left (\int \frac{1}{1-(a+b) x^2} \, dx,x,\frac{\sin (e+f x)}{\sqrt{a+b \sin ^2(e+f x)}}\right )}{(a+b)^2 f}\\ &=\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b} \sin (e+f x)}{\sqrt{a+b \sin ^2(e+f x)}}\right )}{(a+b)^{5/2} f}+\frac{b \sin (e+f x)}{3 a (a+b) f \left (a+b \sin ^2(e+f x)\right )^{3/2}}+\frac{b (5 a+2 b) \sin (e+f x)}{3 a^2 (a+b)^2 f \sqrt{a+b \sin ^2(e+f x)}}\\ \end{align*}

Mathematica [C]  time = 9.31516, size = 1291, normalized size = 10.25 \[ \text{result too large to display} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sec[e + f*x]/(a + b*Sin[e + f*x]^2)^(5/2),x]

[Out]

(Sec[e + f*x]*Tan[e + f*x]*(1575*ArcSin[Sqrt[-(((a + b)*Tan[e + f*x]^2)/a)]] + (2100*b*ArcSin[Sqrt[-(((a + b)*
Tan[e + f*x]^2)/a)]]*Sin[e + f*x]^2)/a + (840*b^2*ArcSin[Sqrt[-(((a + b)*Tan[e + f*x]^2)/a)]]*Sin[e + f*x]^4)/
a^2 + (3150*(a + b)*ArcSin[Sqrt[-(((a + b)*Tan[e + f*x]^2)/a)]]*Tan[e + f*x]^2)/a + (4200*b*(a + b)*ArcSin[Sqr
t[-(((a + b)*Tan[e + f*x]^2)/a)]]*Sin[e + f*x]^2*Tan[e + f*x]^2)/a^2 + (1680*b^2*(a + b)*ArcSin[Sqrt[-(((a + b
)*Tan[e + f*x]^2)/a)]]*Sin[e + f*x]^4*Tan[e + f*x]^2)/a^3 + (1575*(a + b)^2*ArcSin[Sqrt[-(((a + b)*Tan[e + f*x
]^2)/a)]]*Tan[e + f*x]^4)/a^2 + (2100*b*(a + b)^2*ArcSin[Sqrt[-(((a + b)*Tan[e + f*x]^2)/a)]]*Sin[e + f*x]^2*T
an[e + f*x]^4)/a^3 + (840*b^2*(a + b)^2*ArcSin[Sqrt[-(((a + b)*Tan[e + f*x]^2)/a)]]*Sin[e + f*x]^4*Tan[e + f*x
]^4)/a^4 + 2100*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(3/2) + (2800*
b*Sin[e + f*x]^2*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(3/2))/a + (1
120*b^2*Sin[e + f*x]^4*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(3/2))/
a^2 + 96*Hypergeometric2F1[2, 2, 9/2, -(((a + b)*Tan[e + f*x]^2)/a)]*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^
2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(7/2) + 24*HypergeometricPFQ[{2, 2, 2}, {1, 9/2}, -(((a + b)*Tan[e + f*
x]^2)/a)]*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(7/2) + (168*b*Hyper
geometric2F1[2, 2, 9/2, -(((a + b)*Tan[e + f*x]^2)/a)]*Sin[e + f*x]^2*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]
^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(7/2))/a + (48*b*HypergeometricPFQ[{2, 2, 2}, {1, 9/2}, -(((a + b)*Tan
[e + f*x]^2)/a)]*Sin[e + f*x]^2*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a)
)^(7/2))/a + (72*b^2*Hypergeometric2F1[2, 2, 9/2, -(((a + b)*Tan[e + f*x]^2)/a)]*Sin[e + f*x]^4*Sqrt[(Sec[e +
f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(-(((a + b)*Tan[e + f*x]^2)/a))^(7/2))/a^2 + (24*b^2*HypergeometricPFQ[{2, 2
, 2}, {1, 9/2}, -(((a + b)*Tan[e + f*x]^2)/a)]*Sin[e + f*x]^4*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*
(-(((a + b)*Tan[e + f*x]^2)/a))^(7/2))/a^2 - 1575*Sqrt[-(((a + b)*Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2)*Tan[e
+ f*x]^2)/a^2)] - (2100*b*Sin[e + f*x]^2*Sqrt[-(((a + b)*Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2)*Tan[e + f*x]^2)
/a^2)])/a - (840*b^2*Sin[e + f*x]^4*Sqrt[-(((a + b)*Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2)*Tan[e + f*x]^2)/a^2)
])/a^2))/(315*a^2*f*Sqrt[a + b*Sin[e + f*x]^2]*Sqrt[(Sec[e + f*x]^2*(a + b*Sin[e + f*x]^2))/a]*(1 + (b*Sin[e +
 f*x]^2)/a)*(-(((a + b)*Tan[e + f*x]^2)/a))^(5/2))

________________________________________________________________________________________

Maple [B]  time = 4.599, size = 899, normalized size = 7.1 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(f*x+e)/(a+b*sin(f*x+e)^2)^(5/2),x)

[Out]

1/6/b^2/a^2/(a+b)^(1/2)/(a^2*b^2*cos(f*x+e)^4+2*a*b^3*cos(f*x+e)^4+b^4*cos(f*x+e)^4-2*a^3*b*cos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+a))*a+ln(2/(1+sin(f*x+e))*((a+b)^(1/2)
*(a+b-b*cos(f*x+e)^2)^(1/2)-b*sin(f*x+e)+a))*b-ln(2/(-1+sin(f*x+e))*((a+b)^(1/2)*(a+b-b*cos(f*x+e)^2)^(1/2)+b*
sin(f*x+e)+a))*a-ln(2/(-1+sin(f*x+e))*((a+b)^(1/2)*(a+b-b*cos(f*x+e)^2)^(1/2)+b*sin(f*x+e)+a))*b)*cos(f*x+e)^2
)/f

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)/(a+b*sin(f*x+e)^2)^(5/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [B]  time = 6.39366, size = 1752, normalized size = 13.9 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)/(a+b*sin(f*x+e)^2)^(5/2),x, algorithm="fricas")

[Out]

[1/12*(3*(a^2*b^2*cos(f*x + e)^4 + a^4 + 2*a^3*b + a^2*b^2 - 2*(a^3*b + a^2*b^2)*cos(f*x + e)^2)*sqrt(a + b)*l
og(((a^2 + 8*a*b + 8*b^2)*cos(f*x + e)^4 - 8*(a^2 + 3*a*b + 2*b^2)*cos(f*x + e)^2 - 4*((a + 2*b)*cos(f*x + e)^
2 - 2*a - 2*b)*sqrt(-b*cos(f*x + e)^2 + a + b)*sqrt(a + b)*sin(f*x + e) + 8*a^2 + 16*a*b + 8*b^2)/cos(f*x + e)
^4) + 4*(6*a^3*b + 14*a^2*b^2 + 10*a*b^3 + 2*b^4 - (5*a^2*b^2 + 7*a*b^3 + 2*b^4)*cos(f*x + e)^2)*sqrt(-b*cos(f
*x + e)^2 + a + b)*sin(f*x + e))/((a^5*b^2 + 3*a^4*b^3 + 3*a^3*b^4 + a^2*b^5)*f*cos(f*x + e)^4 - 2*(a^6*b + 4*
a^5*b^2 + 6*a^4*b^3 + 4*a^3*b^4 + a^2*b^5)*f*cos(f*x + e)^2 + (a^7 + 5*a^6*b + 10*a^5*b^2 + 10*a^4*b^3 + 5*a^3
*b^4 + a^2*b^5)*f), -1/6*(3*(a^2*b^2*cos(f*x + e)^4 + a^4 + 2*a^3*b + a^2*b^2 - 2*(a^3*b + a^2*b^2)*cos(f*x +
e)^2)*sqrt(-a - b)*arctan(1/2*((a + 2*b)*cos(f*x + e)^2 - 2*a - 2*b)*sqrt(-b*cos(f*x + e)^2 + a + b)*sqrt(-a -
 b)/(((a*b + b^2)*cos(f*x + e)^2 - a^2 - 2*a*b - b^2)*sin(f*x + e))) - 2*(6*a^3*b + 14*a^2*b^2 + 10*a*b^3 + 2*
b^4 - (5*a^2*b^2 + 7*a*b^3 + 2*b^4)*cos(f*x + e)^2)*sqrt(-b*cos(f*x + e)^2 + a + b)*sin(f*x + e))/((a^5*b^2 +
3*a^4*b^3 + 3*a^3*b^4 + a^2*b^5)*f*cos(f*x + e)^4 - 2*(a^6*b + 4*a^5*b^2 + 6*a^4*b^3 + 4*a^3*b^4 + a^2*b^5)*f*
cos(f*x + e)^2 + (a^7 + 5*a^6*b + 10*a^5*b^2 + 10*a^4*b^3 + 5*a^3*b^4 + a^2*b^5)*f)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)/(a+b*sin(f*x+e)**2)**(5/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (f x + e\right )}{{\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac{5}{2}}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)/(a+b*sin(f*x+e)^2)^(5/2),x, algorithm="giac")

[Out]

integrate(sec(f*x + e)/(b*sin(f*x + e)^2 + a)^(5/2), x)